<?php use_helper('SEstadisticas') ?>
<?php echo_title('Cambiar contrase&ntilde;a') ?>

<script type="text/javascript">
  $(document).ready(function () {
    $('input[type="password"]').val('');
  });
</script>

<div id="admin_container">

  <h1>Cambiar contrase&ntilde;a</h1>

  <?php include_partial('perfil/flashes') ?>

  <div id="admin_content">
    <div class="admin_form">
      <form id="change_password" action="<?php echo url_for('@profile_change_password') ?>" method="post">
        <fieldset>
        <legend>Informaci&oacute;n del usuario</legend>
        <?php echo $form->renderHiddenFields() ?>

        <?php foreach ($form as $name => $field): ?>
          <?php if ($field->isHidden()) continue ?>
          <div class="admin_form_row">
            <?php echo $form[$name]->renderError() ?>
            <div>
              <?php echo $form[$name]->renderLabel() ?>
              <div class="content">
                <?php echo $form[$name]->render() ?>
              </div>
            </div>
          </div>
        <?php endforeach ?>

        </fieldset>
        <ul class="admin_actions">
          <li class="admin_action_default">
            <?php echo link_to('Volver a perfil', '@profile') ?>
          </li>
          <li>
            <input type="submit" value="Cambiar contrase&ntilde;a" />
          </li>
        </ul>
      </form>
    </div>
  </div>
</div>